﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Article.aspx.cs" Inherits="Web.Admin.Article" %>

<%@ Register Assembly="AspNetPager" Namespace="Wuqi.Webdiyer" TagPrefix="webdiyer" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
</head>
<body>
    <form id="form1" runat="server">
    <div>
        <br />
        <a href="Article_Add.aspx">添加</a>
        <br />
        <br />
        <h1>
            文章列表
        </h1>
        <table width="96%" cellpadding="6" cellspacing="0" border="1">
            <asp:Repeater ID="Repeater1" runat="server" OnItemCommand="Repeater1_ItemCommand">
                <HeaderTemplate>
                    <tbody>
                        <tr>
                            <th>
                                名称
                            </th>
                            <th>
                                英文名称
                            </th>
                            <th>
                                UserID
                            </th>
                            <th>
                                关键字
                            </th>
                            <th>
                                作者
                            </th>
                            <th>
                                访问量
                            </th>
                            <th>
                                状态标识
                            </th>
                            <th>
                                删除
                            </th>
                            <th>
                                修改
                            </th>
                            <th>
                                详细
                            </th>
                        </tr>
                    </tbody>
                </HeaderTemplate>
                <ItemTemplate>
                    <tr>
                        <td>
                            <%# DataBinder.Eval(Container.DataItem, "Name")%>
                        </td>
                        <td>
                            <%# DataBinder.Eval(Container.DataItem, "EName")%>
                        </td>
                        <td>
                            <%# DataBinder.Eval(Container.DataItem, "publishTime") %>
                        </td>
                        <td>
                            <%# DataBinder.Eval(Container.DataItem, "Keywords")%>
                        </td>
                        <td>
                            <%# DataBinder.Eval(Container.DataItem, "Author")%>
                        </td>
                        <td>
                            <%# DataBinder.Eval(Container.DataItem, "HitCount")%>
                        </td>
                        <td>
                            <%# DataBinder.Eval(Container.DataItem, "State")%>
                        </td>
                        <td>
                            <asp:LinkButton ID="lbtdelete" runat="server" Text="删除" CommandName="remove" CommandArgument='<%# DataBinder.Eval(Container.DataItem, "ID")%>'></asp:LinkButton>
                        </td>
                        <td>
                            <a href="Article_Modify.aspx?id=<%# DataBinder.Eval(Container.DataItem, "ID")%>">修改</a>
                        </td>
                        <td>
                            <a style="text-decoration: none" href='http://www.itkaifa.com/article/<%# DataBinder.Eval(Container.DataItem, "EName")%>.html'  target="_blank">
                                详细 </a>
                        </td>
                    </tr>
                </ItemTemplate>
            </asp:Repeater>
            <tr>
                <td colspan="10">
                    <webdiyer:AspNetPager ID="AspNetPager1" runat="server" ShowPageIndexBox="Always"
                        CssClass="paginator" CurrentPageButtonClass="cpb" TextBeforePageIndexBox="跳转到第"
                        TextAfterPageIndexBox="页" PageSize="10" CurrentPageIndex="1" FirstPageText="首页"
                        LastPageText="尾页" PrevPageText="上页" NextPageText="下页" OnPageChanged="AspNetPager1_PageChanged"
                        LayoutType="Table" UrlPaging="true">
                    </webdiyer:AspNetPager>
                    <asp:Label ID="Label1" runat="server"></asp:Label>
                    <br />
                    <br />
                </td>
            </tr>
        </table>
    </div>
    </form>
</body>
</html>
